package com.lee.mybatis.mapper;

import com.lee.mybatis.entity.Role;
import com.lee.mybatis.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {

    User login(@Param("userName") String userName,@Param("password") String password);

    void insert(User user);

    void updateById(User user);

    void deleteById(@Param("id")Integer id);

    List<User> selectWithUserNo();

    List<Role> selectByUserId(@Param("id") Integer id);


}
